package top.scsoul.voes.common.core.domain.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.List;

/**
 * (Role)实体类
 *
 * @author guolei
 * @since 2021-08-8 00:13:10
 */
public class Role implements Serializable {
    private static final long serialVersionUID = -21637742386680634L;
    /**
     * 角色id
     */
    @Excel(name = "角色编号")
    private Integer id;
    /**
     * 角色标识
     */
    @Excel(name = "角色标识", width = 25)
    private String roleKeyword;
    /**
     * 角色描述
     */
    @Excel(name = "角色描述")
    private String roleDesc;

    private List<Permission> permissions;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleKeyword() {
        return roleKeyword;
    }

    public void setRoleKeyword(String roleKeyword) {
        this.roleKeyword = roleKeyword;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }


    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", roleKeyword='" + roleKeyword + '\'' +
                ", roleDesc='" + roleDesc + '\'' +
                ", permissions=" + permissions +
                '}';
    }
}